<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script src="${pageContext.request.contextPath}/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/dwz/js/dwz.validate.method.js" type="text/javascript"></script>
<div class="pageContent">
	<form action="outsideUser_${empty osuId ? "
		add":"edit" }.action"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, navTabAjaxDone);"
		method="post">
		<input type="hidden" name="osuId" value="${osuId }">
		<div class="pageFormContent nowrap" layoutH="56">
			<dl>
				<dt><label>地区：</label></dt>
				<dd>
				<select name="areaCode" 
					class="combox required" ref="area_child" refUrl="school_getAreaByCity.action?areaCode={value}">
					<option value="">---所有地区---</option>
					<c:forEach items="${application.areaList}" var="area">
						<option ${areaCode==area.areaCode?"selected":""}  value="${area.areaCode }">${area.areaName}</option>
					</c:forEach>
				</select>
				</dd>
			</dl>
			<dl>
			
			<dt><label>区县</label></dt>
			<dd><select name="areaChildcode" 
					class="combox" id="area_child">
					<option value="">---请选择---</option>
					<c:forEach items="${countyList}" var="areaChild">
						<option ${areaChildcode==areaChild.areaCode?"selected":""}  value="${areaChild.areaCode }">${areaChild.areaName}</option>
					</c:forEach>
					</select>
			</dd>
			</dl>
			<dl>
				<dt>
					<label>用户类型：</label>
				</dt>
				<dd>
					<select name="osuType" 
						class="required combox">
						<option value="">---请选择---</option>
						<option ${osuType==0?"selected":"" } value="0">学校管理员</option>
						<option ${osuType==1?"selected":"" } value="1">移动客户经理</option>
						<option ${osuType==2?"selected":"" } value="2">行业经理</option>
					</select>
				</dd>

			</dl>
			<dl>
				<dt>
					<label>姓名：</label>
				</dt>
				<dd>
					<input name=osuName class="required" type="text"
						maxlength="20" value="${osuName}" />
				</dd>

			</dl>
			<dl>
				<dt>
					<label>性别：</label>
				</dt>
				<dd>
					<select name="osuSex" class="required combox">
						<option ${osuSex==0?"selected":"" } value="0">---请选择---</option>
						<option ${osuSex==1?"selected":"" } value="1" >男</option>
						<option ${osuSex==2?"selected":"" } value="2">女</option>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>
					<label>手机号：</label>
				</dt>
				<dd>
					<input type="text" name="osuPhone" maxlength="20"
						class="mobile required" value="${osuPhone}"
						remote="outsideUser_checkPhone.action?outUserId=${osuId }" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>电子邮件：</label>
				</dt>
				<dd>
					<input type="text" name="osuEmail" maxlength="60"
						class="required email" value="${osuEmail}"/>
				</dd>
			</dl>

			<dl>
				<dt>
					<label>备注信息：</label>
				</dt>
				<dd>
					<textarea name="remark" rows="2" cols="30">${remark}</textarea>
				</dd>
			</dl>

		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
		<input type="hidden" value="${csrfToken}" name="CSRFToken">
	</form>
</div>